﻿using System;
using System.Collections.Generic;
using System.Text;
using FD.RemoteAssistant.Core;

namespace FD.RemoteAssistant.JsonEx
{
    /*
     * CreatedOn: 2018-05-15
     * CreatedBy: Jackie Lee(天宇遊龍)
     */
    public class JsonSerializer : ISerializer
    {
        public string Serialize<T>(T model)
        {
            return model.ToJson();
        }

        public T Deserialize<T>(string content)
        {
            return content.FromJson<T>();
        }
    }
}
